<? require_once("header.php"); ?>

<div id="svnListArea" style="padding:5px;">
    <table style="border:1px solid #A3B1BF;width:100%;font-family:verdana;font-size:13px;">
        <tbody style="background-color:#CEE0F2">
            <th width="35">*</th>
            <th width="140">name</th>
            <th width="50" >revision</th>
            <th width="150">date</th>
            <th width="70" >author</th>
            <th width="*"  >comments</th>
        </tbody>
<?

    foreach( $svnlist->entries as $listEntry ) {
        $author   = $listEntry->author;
        $revision = $listEntry->revision;
        $isdir    = $listEntry->isdir;
        $name     = $listEntry->name;
        $date     = $listEntry->date;
        $comment  = $listEntry->comment;

?>
        <tr>
<?
        if( $isdir ) {
?>
            <td width="35" class="right"><img src="/static/image/folderclosed.gif" border="0" /></td>
            <td width="140" class="left"><a href="javascript:goPath('<?=$path.$name?>')"><strong><?=$name?></strong></a></td>
<?
        } else {
            $ext  = strrchr($name, ".");
            $mime = $extEnscript[$ext];
?>
            <td width="35" class="left"></td>
            <td width="140" class="left">
                <? if( !empty($mime) ) { ?>
                <a href="javascript:goDiffFileBrowser('cat','<?=$path.$name?>')"><?=$name?></a>
                <? } else { ?>
                <?=$name?>
                <? } ?>
            </td>
<?
        }
?>
            <td width="50" class="right"><a href="#" onClick="goLogBrowser('<?=$name?>');"><?=$revision?></a></td>
            <td width="150"><?=$date?></td>
            <td width="70"><?=$author?></td>
            <td width="*" class="left"><?=$comment?></td>
            </tr>
<?
    }
?>
    </table>
</div>

<? require_once("footer.php"); ?>

